package com.sunny.core.service.impl;


import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.sunny.core.bean.PolicyMaster;
import com.sunny.core.mapper.PolicyMasterMapper;
import com.sunny.core.service.IPolicyMasterService;

@Service("policyMasterService")
public class PolicyMasterServiceImpl extends BaseServiceImpl <PolicyMaster> implements IPolicyMasterService {
	
	@Autowired
	PolicyMasterMapper  policyMasterMapper;

	public List<PolicyMaster> query(PolicyMaster entity) {
		return policyMasterMapper.query(entity);
	}
	
	public PolicyMaster selectByPolicyCode(PolicyMaster entity){
		return policyMasterMapper.selectByPolicyCode(entity);
		
	}
	
	
	public PolicyMaster selectByPolicyMasterPid(PolicyMaster entity){
		return policyMasterMapper.selectByPolicyMasterPid(entity);
		
	}
	
}
